class Person:
    # 类里面的叫方法
    def __init__(self, name, age, height):
        self.name = name
        self.age = age
        self.height = height

    def run(self):
        print(f'{self.name}在奔跑')

    def eat(self):
        print(f'{self.name}在吃饭')


# 实例化
elephant = Person('大象', 18, 1.75)
print(elephant.name,elephant.age,elephant.height)
elephant.run()
elephant.eat()

tiger = Person('老虎',17,1.65)
print(tiger.name,tiger.age,tiger.height)
tiger.run()
tiger.eat()

print('*'*50)
print(dir(Person))
print('*'*50)
print(dir(tiger))
